﻿using KinonekoSoftware.Expressions.Core;

namespace KinonekoSoftware.Expressions.Primitives
{
    public sealed class XCorePicture : ExpressionBlockNode, IXCorePicture
    {
        private string _description;
        private string _source;
        private int    _originWidth;
        private int    _originHeight;
        private int    _actualWidth;
        private int    _actualHeight;

        public override ExpressionNode Generate()
        {
            return new XCorePicture
            {
                Id = GetID(),
            };
        }

        public int ActualHeight
        {
            get => _actualHeight;
            set => SetValue(ref _actualHeight, value);
        }


        public int ActualWidth
        {
            get => _actualWidth;
            set => SetValue(ref _actualWidth, value);
        }

        public int OriginHeight
        {
            get => _originHeight;
            set => SetValue(ref _originHeight, value);
        }

        public int OriginWidth
        {
            get => _originWidth;
            set => SetValue(ref _originWidth, value);
        }


        public string Source
        {
            get => _source;
            set => SetValue(ref _source, value);
        }

        public string Description
        {
            get => _description;
            set => SetValue(ref _description, value);
        }
    }
}